package com.ce.thd;

import org.eclipse.swt.widgets.ProgressBar;

public class UpdateProgressRunnable implements Runnable {
	ProgressBar progressBar;
	
	public UpdateProgressRunnable(ProgressBar progressBar) {
		this.progressBar = progressBar;
	}

	public void run() {
		for (int i = 0; i < 10; i++) {
			progressBar.setSelection(10*i);
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		progressBar.setSelection(100);
	}

}
